import com.Spring.Lifecycle;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LifecycleTest {
    @Test

    public void test(){
        ClassPathXmlApplicationContext applicationContext =
                new ClassPathXmlApplicationContext("Lifecycle.xml");
        Lifecycle lifecycle = applicationContext.getBean("lifecycle", Lifecycle.class);

        System.out.println(lifecycle.content);

        applicationContext.close();



    }
}
